<template>
  <div class="book-detail">
    <slot></slot>
  </div>
</template>

<script>
export default {
}
</script>

<style lang='scss' scoped>
.book-detail {
  width: 95%;
  margin: 0 auto;
  .bookd-route {
    margin: 20px 0;
    font-size: 12px;
    .web-name {
      margin: 0 5px;
    }
    .cat-name {
      margin: 0 5px;
    }
    .bookdr-name {
      margin: 0 5px;
    }
  }

  .bookd-show {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    .bookd-pic {
      display: inline-block;
      width: 100px;
      height: 140px;
      margin-right: 10px;
      .bookdp-show {
        width: 100%;
        height: 100%;
      }
    }

    .bookd-cont {
      vertical-align: top;
      display: inline-block;
      //200 + 25 px
      width: calc(100% - 110px);
      .bookdc-name-author {
        margin: 0 0 20px 0;
        .bookdc-name {
          font-size: 23px;
          margin-right: 20px;
        }
        .bookdc-author {
          color: #444;
          font-size: 13px;
        }
      }
      .bookdc-attr {
        color: #666;
        font-size: 13px;
        .bookdc-cat {
          display: block;
          width: 100%;
          // margin-right: 80px;
        }
        .bookdc-state {
          display: block;
          width: 100%;
          // margin-right: 80px;
        }
        .bookdc-click {
          display: block;
          width: 100%;
          // margin-right: 80px;
        }
        .bookdc-words {
          display: block;
          width: 100%;
        }
      }
    }
    
    .bookdc-intro {
      margin-top: 10px;
      font-size: 14px;
      color: #333;
      min-height: 80px;
      overflow: hidden;
    }
    .bookdc-intro-part{
      height: 80px;
    }
    .bookdc-intro-extend {
      color: #2972CC;
      text-align: right;
      margin: 0;
      font-size: 12px;
      .bookdci-icon-text{
        cursor: pointer;
        padding-left: 15px;
        line-height: 18px;
        .bookdci-icon {
          display: inline-block;
          width: 12px;
          height: 12px;
          //left top position
          background:url('../../assets/images/icon_dt.png') no-repeat;
          cursor: pointer;
        }
        .bookdci-icon-show{
          background-position: 0px 2px;
        }
        .bookdci-icon-hide{
          background-position: -12px 2px;
        }
      }
    }
    .bookdc-operation {
      .bookdc-read {
        display: inline-block;
        width: 130px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 20px;
        background-color: $base-color;
        margin-right: 30px;
        color: #fff;
      }
      .bookdc-read:hover {
        background-color: #FF7700;
      }
      .bookdc-btn {
        cursor: pointer;
        color: $base-color;
        display: inline-block;
        width: 115px;
        height: 38px;
        line-height: 38px;
        text-align: center;
        border: 1px solid $base-color;
        border-radius: 20px;
        margin-right: 15px;
      }
      .bookdc-btn:hover{
        background-color: #fefaf6;
      }
    }
  }

  .bookd-other {
    .bookdo-chapter {
      display: inline-block;
      vertical-align: top;
      // margin-right: 20px;
      // width: 70%;
      width: calc(100% - 40px);
      padding: 20px;
      background-color: #fff;
      border-radius: 8px;
      .bookdch-title-cont {
        width: 100%;
        border: 1px solid #eee;
        border-width: 0 0 1px 0;
        line-height: 40px;
        padding: 0;
        .bookdch-title {
          font-size: 20px;
          font-weight: bold;
        }
        .bookdch-count {
          color: #666;
        }
        .bookdch-go {
          color: #333;
          float: right;
          .bookdch-go-resource {
            margin-right: 15px;
          }
          .bookdch-go-allchap {
            cursor: pointer;
            margin-right: 15px;
          }
          .bookdch-go-allchap:hover{
            color: $base-color;
          }
        }
      }

      .bookdch-new-view {
        height: 90px;
        .bookdchv-new {
          line-height: 25px;
          .bookdchv-name {
            color: #333;
            font-size: 15px;
          }
          .bookdchv-uptime {
            position: relative;
            right: 0;
            color: #999;
            font-size: 12px;
            float: right;
          }
        }
        .bookdchv-view {
          color: #999;
          overflow: hidden;
        }
      }

    }

    .bookdo-author-recom {
      margin-top: 10px;
      width: 100%;
      display: inline-block;

      .bookdo-recom {
        // width: 100%;
        border-radius: 8px;
        padding: 20px;
        background-color: #fff;
        .bookdor-title {
          height: 35px;
          border: 1px solid #e0e0e0;
          border-width: 0 0 1px 0;
          margin: 0;
          font-size: 20px;
          font-weight: bold;
        }

        .bookdor-item {
          padding: 12px 0 10px 0;
          border: 1px solid #eee;
          border-width: 0 0 1px 0;
          .bookori-pic {
            width: 64px;
            margin-right: 10px;
            display: inline-block;
          }
          .bookdori-right {
            vertical-align: top;
            display: inline-block;
            width: calc(100% - 74px);
            .bookdori-title {
              margin-top: 0;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              color: #333;
            }
            .bookdori-title:hover{
              color: $base-color;
            }
            .bookdori-desc {
              height: 50px;
              font-size: 12px;
              overflow: hidden;
              color: #808080;
            }
            .bookdori-desc:hover {
              color: $base-color;
            }
          }
        }
      }
    }
  }
}
</style>